package com.bci.pwtz.service;

import com.bci.pwtz.common.util.PaginationList;
import com.bci.pwtz.exception.CanNotDeleteException;
import com.bci.pwtz.exception.PwtzDatabaseException;
import com.bci.pwtz.mysql.model.Dypdp;

public interface DypdpService {
	/**
	 * 查询低压配电盘
	 * @param dypdpId
	 * @return
	 * @throws PwtzDatabaseException
	 */
	Dypdp load(String dypdpId) throws PwtzDatabaseException;
	/**
	 * 添加低压配电盘
	 * @param dypdp
	 * @return
	 * @throws PwtzDatabaseException
	 */
	Dypdp add(Dypdp dypdp) throws PwtzDatabaseException;
	/**
	 * 删除低压配电盘
	 * @param deviceid
	 * @return
	 * @throws PwtzDatabaseException
	 */
	int delete(String deviceid) throws PwtzDatabaseException,CanNotDeleteException;
	/**
	 * 修改低压配电盘
	 * @param dypdp
	 * @return
	 * @throws PwtzDatabaseException
	 */
	int update(Dypdp dypdp) throws PwtzDatabaseException;
	/**
	 * 分页查询一段时间内修改的低压配电盘
	 * @param beginTime
	 * @param endTime
	 * @param pageSize
	 * @param pageNo
	 * @return
	 * @throws PwtzDatabaseException
	 */
	PaginationList<Dypdp> selectDypdps(String devicename,Long companyId,int portalType,String[] medLineCodes,int stationDeviceType,String stationCode,String beginTime,String endTime,int pageSize,int pageNo)throws PwtzDatabaseException;

	PaginationList<Dypdp> selectDypdpByDyzf(String stationCode,String deviceName,Long companyId,int pageSize, int pageNo) throws PwtzDatabaseException;
}
